package com.yidu.qx.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Objects;
import java.util.Set;

/**
 * @program: jurisdiction
 * @description:角色模板表
 * @author: 张超
 * @create: 2019-09-25 10:23
 */
@SuppressWarnings("ALL")
@Entity
@Table(name = "qx_roles_modules", catalog = "")
public class QxRolesModulesEntity {
    private String rolId;
    private String modId;
    private String chaId;

    public String getModId() {
        return modId;
    }

    public void setModId(String modId) {
        this.modId = modId;
    }

    public String getChaId() {
        return chaId;
    }

    public void setChaId(String chaId) {
        this.chaId = chaId;
    }

    @Id
    @Column(name = "rol_id")
    public String getRolId() {
        return rolId;
    }

    public void setRolId(String rolId) {
        this.rolId = rolId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        QxRolesModulesEntity that = (QxRolesModulesEntity) o;
        return Objects.equals(rolId, that.rolId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(rolId);
    }
}